<?php
/*************************************************

文章公共控制器 - the 
Author: WangHuabin <18-1-10>

*************************************************/
namespace Home\Controller;
use Think\Controller;
class NewsController extends CommonController {

    public function news_info(){
        $id = I('get.id');
        $otth = I('get.otth');
		$map['id'] = $id;
        $info = M('News')->where($map)->find();
		if($otth){
			$map = array();
			$map['id'] = $otth;
			$otth_info = M('OtthAppraisal')->where($map)->find();
			if($info){
				$this->assign('otth_info',$otth_info);
			}
			
		}
        $this->assign('info',$info);
        $this->assign('otth',$otth);
       $this->display();
    }

}